import { forwardRef, Module } from '@nestjs/common';
import { SysRoleService } from './sys-role.service';
import { SysRoleController } from './sys-role.controller';
import { SysRole } from './entities/sys-role.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SysUserModule } from '../sys-user/sys-user.module';
import { SysMenuModule } from '../sys-menu/sys-menu.module';
import { SysMenu } from '../sys-menu/entities/sys-menu.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([SysRole, SysMenu]),
    forwardRef(() => SysUserModule),
    forwardRef(() => SysMenuModule),
  ],
  controllers: [SysRoleController],
  providers: [SysRoleService],
  exports: [SysRoleService],
})
export class SysRoleModule {}
